package com.itheima.Demo01.demo05;

import java.util.concurrent.CountDownLatch;

public class MotheThred extends Thread {
    private CountDownLatch c;

    public MotheThred(CountDownLatch c) {
        this.c = c;
    }

    @Override
    public void run() {
        try {
            c.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("妈妈收拾碗筷");
    }
}
